package com.coo.events
{
	import flash.events.Event;

	public class StageEvent extends Event
	{
		public static const RESIZE: String = "Resize";
		
		private var _stageWh: Number;
		private var _stageHt: Number;
		
		public function StageEvent(type:String, stageWh: Number, stageHt: Number,  bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			_stageWh = stageWh;
			_stageHt = stageHt;
		}
		
		public override function clone():Event
		{
			return new StageEvent( type, _stageWh, stageHt, bubbles, cancelable );
		}
		
		public override function toString():String
		{
			return formatToString( "PositionEvent", "type", "stageWh", "stageHt", "bubbles", "cancelable" );
		}
		
		public function get stageWh(): Number { return _stageWh; }
		public function get stageHt(): Number { return _stageHt; }
	}
}